<body>
<div class="path fn-clear"><span class="fb">首页</span><a href="{url('channel/language')}">站点管理</a></div>
<div class="button-nav">
<a href="###" url="{url('channel/languageadd')}" class="button button-blank win" title="添加站点"><i class="iconfont" title="添加站点">&#xF023;</i> 添加站点</a>
</div>
<div class="m5">
<table class="table table-bordered table-striped" width="100%">
<thead>
    <tr>
        <th class="fn-tac w20">#</th>
        <th class="fn-tal w200">捆绑域名</th>
        <th class="fn-tal">站点名称</th>
        <th class="fn-tal w60">默认站点</th>
        <th class="fn-tac w120">模板文件</th>
        <th class="fn-tac w120">更新时间</th>
        <th class="fn-tac w120">操作</th>
    </tr>
</thead>
<tbody>
{loop $list $vo}
<tr>
    <td class="fn-tac">{$vo['id']}</td>
    <td>http://{if $vo['url']}{$vo['url']}{else}*.YouDomain.com{/if}</td>
    <td>{$vo['name']}</td>
    <td class="fn-tac">{if $vo['types']}可选{else}<span class="red">默认</span>{/if}</td>
    <td class="fn-tac">{$vo['tpl_index']}</td>
    <td class="fn-tac">{date('Y-m-d H:i:s',$vo['uptime'])}</td>
    <td class="fn-tac tip"><a href="###" class="win" title="编辑站点" url="{url('channel/languageedit',array(id=>$vo['id']))}">编辑</a>/<a href="###" class="del" title="删除" url="{url('channel/language',array(id=>$vo['id'],act=>del))}">删除</a></td>
</tr>
{/loop}
</tbody>
</table>
</div>
<script language="javascript">
Do('base','Dialog',function(){
  $(".win").click(function(){
    $(this).cpWindows();
  });
  $('.del').click(function(){
    $(this).cpDelete();
  });
})
</script>
</body>